﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Abp.Modules;
using Xugege.AbpExtension.Core.Extension.Configuration;
using Xugege.AbpExtension.Core.Extension.DataManager;

namespace Xugege.AbpExtension.Core.Extension
{
    //[DependsOn(typeof(AbpZeroTemplateCoreModule))]
    public class AbpZeroTemplateCoreExtensionModule : AbpModule
    {
        public override void Initialize()
        {
            IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());

        }

        public override void PostInitialize()
        {
            //初始化数据字典配置信息
            var dataDictionarySetting = IocManager.Resolve<DataDictionarySetting>();
            dataDictionarySetting.LevelRuleSplit = '-';
            dataDictionarySetting.Rule4Code = "2-3-2";

        }

        public override void PreInitialize()
        {
            Configuration.Settings.Providers.Add<AppSettingProviderExtension>();

        }
    }
}
